<?php
    // 删除成员信息
    header("Content-type:text/html;charset=utf-8");
    $mysqli = new mysqli("localhost","root","root","materialadmin");
    if($mysqli->connect_errno != 0){
        die();
    };

    $Id = $_GET["Id"];
  
    $sql = "delete from rolemanagement where id=$Id";
    if ($mysqli->query($sql) === true){
        $data['code'] = 3000;
        $data['msg'] = '删除成功';
    }
    echo json_encode($data);
?>